<template>
  <div>
    <TaskListSidebar @item-click="handleClick" />
    <newPlan :selectedName="selectName" :visible.sync="dialogVisible" />
  </div>
</template>

<script>
import TaskListSidebar from "@/views/replan/pages/tasklist/components/taskListSidebar.vue";
import newPlan from "./components/newPlan.vue";

export default {
  name: "TaskList",
  components: { TaskListSidebar, newPlan },
  data() {
    return {
      selectName: "",
      dialogVisible: false,
    };
  },
  methods: {
    handleClick(name) {
      this.selectName = name;
      this.dialogVisible = true; // 打开弹窗
    },
  },
};
</script>
